<template>
  <div>
    <!-- <Test v-model:input1="input1" v-model:input2="input2"></Test> -->
    <el-button @click="guangboTwo">{{ text }}</el-button>
  </div>
</template>

<script setup>
// import Test from '@/components/A_cusCom/testInput.vue';
// let input1 = ref('345');
// let input2 = ref('34523');
let text = ref('未付等待中');
import { useRouter } from 'vue-router';
import { ElMessage } from 'element-plus';
const router = useRouter();
const guangboTwo = () => {
  router.go(-1);
};

onMounted(() => {
  setTimeout(() => {
    ElMessage.success('支付成功，跳转中，请稍后');
    text.value = '已支付，跳转中，请稍后';
  }, 2000);

  setTimeout(() => {
    router.go(-1);
  }, 4000);
});
</script>

<style lang="scss" scoped></style>
